package cn.jiyun.service.impl;

import cn.jiyun.mapper.TeshuDateMapper;
import cn.jiyun.pojo.TeshuDate;
import cn.jiyun.service.TeshuDateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeshuDateServiceImpl implements TeshuDateService {
    @Autowired
    private TeshuDateMapper teshuDateMapper;
    @Override
    public List<TeshuDate> findAll() {
        return teshuDateMapper.findAll();
    }

    @Override
    public void deletebyid(Integer id) {
        teshuDateMapper.deletebyid(id);
    }

    @Override
    public void add(TeshuDate teshuDate) {
        teshuDateMapper.add(teshuDate);
    }

    @Override
    public void updatebyid(TeshuDate teshuDate) {
        teshuDateMapper.updatebyid(teshuDate);
    }
}
